import { get, post,upload } from './http'

// music-api
export const uploadMusic = p => upload('/music/uploadMusic', p);
export const exactMatch = p => get('/music/getMusicListByName', p);
export const fuzzyQuery = p => get('/music/fuzzySearchMusic', p);
export const countMusic = p => get('/music/countMusic', p);
export const randMusic = p => get('/music/randMusic', p);




// comments-api
export const getComments = p => get('/comments/getCommentsByMusicId', p);
export const insertComments = p => get('/comments/insertFirstComment', p);
export const replyComments = p => get('/comments/reply', p);
